<script lang="ts" setup>
//defineProps<{ msg: string, age?: number }>()

defineProps({
  id: Number,
  name: [String, Number],
  age: {
    type: Number,
    require: false,
    default: 18,
  }
})

</script>

<template>
  <h3>{{ id === null ? '' : id }} Hello,{{ name }}，年龄：{{ age }}岁</h3>
</template>

<style lang="scss" scoped>

</style>
